package com.gmu.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.gmu.pojo.TblStudent;
import com.gmu.pojo.excel.IdData;
import com.gmu.service.TblStudentService;

import java.util.ArrayList;
import java.util.List;

public class IdExcelListener extends AnalysisEventListener<IdData> {


    private List<IdData> idList = new ArrayList<>();

    public List<IdData> getIdList() {
        return idList;
    }

    public void setIdList(List<IdData> idList) {
        this.idList = idList;
    }

    @Override
    public void invoke(IdData idData, AnalysisContext analysisContext) {
//        System.out.println(idData);
        idList.add(idData);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }

}
